package com.ww.springboot.boot.cyclic;

import lombok.Data;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-10-30 17:27
 */
@Data
public class A implements Cloneable{

    private String a;

    private B b;

    public A() {
    }

    public A(B b) {
        this.b = b;
    }

    public A(String a) {
        this.a = a;
    }

    @Override
    protected A clone() {
        try {
            return (A)super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
